var showTree = true;
var timeInter = 30;
var onlineNum = 0;
var offlineNum = 0;
var overproof = 0;
var upDown = 1;
var allGactor = 1000;
var dataType = 3;
var queryParam = {};
// 页面数据模型
var viewMode = {};
var showWindow = false;
var clickRow = {};
var stationName="测点";

var dataQuery = {
	init : function() { 
		dataQuery.evenBind();
	},
	evenBind : function() {
		
	},
	loadDataGrid : function() {
			
			var headerParams = {
					dataQuery:$("#searchRequire").val()
			};

			var listParams = {
					dataQuery:$("#searchRequire").val()
			};
			
			$(".list").show();
			$(".nolist").hide();
			var headUrl = getProjectUrl("/bfs/dataquery/dataheader");
			var dataUrl = getProjectUrl("/bfs/dataquery/datalist");
			var options = {
				pagination : true,
				fit : true,
				fitColumns : true,
				striped : true,
				rownumbers : true,
				nowrap : false,
				pageSize : 200,
				pageNumber : 1,
				pageList : [ 200, 300, 500 ],
				singleSelect : true,
				headerUrl : headUrl,
				maxWidth : document.documentElement.clientWidth,
				listUrl : dataUrl,
				showPointInfo : true,
				headerQuery : headerParams,
				onLoadSuccess : function(response) {
					
				},
				listQuery : listParams
			};

			$("#listDataEx1").datagrid("dgrid", options);

	}
};

$(document).ready(function() {
	resetSize();
	dataQuery.init();
});
